package com.example.services.impl;

import com.example.bean.Product;
import com.example.services.ProductServices;
import org.springframework.stereotype.Service;

@Service
public class ProductServicesImpl implements ProductServices {
    @Override
    public Product getProductById(Integer id) {
        Product product = new Product();
        product.setId(id);
        product.setName("Product " + id);
        product.setPrice(100.0);
        product.setNum(1);
        return product;
    }
}
